const db=require("./mongoose");
var mongoose = require("mongoose");
//创建Schema
let Schema=mongoose.Schema;
let classifylist=new Schema({
  "img1":{type:String},
  "img2":{type:String},
  "img3":{type:String},
  "img4":{type:String},
  "name":{type:String},
  "oldprice":{type:String},
  "newprice":{type:String},
  "describe":{type:String},
  "icon":{type:String},
  "mainname":{type:String},
});
let shoeslist=new Schema({
  "img1":{type:String},
  "img2":{type:String},
  "img3":{type:String},
  "img4":{type:String},
  "name":{type:String},
  "oldprice":{type:String},
  "newprice":{type:String},
  "describe":{type:String},
  "icon":{type:String},
  "mainname":{type:String},
});
let shopcarlist=new Schema({
    "name":{type:String},
    "goodsid":{type:String},
    "storename":{type:String},
    "img1":{type:String},
    "newprice":{type:String},
    "oldprice":{type:String},
    "icon":{type:String},
    "color":{type:String},
    "colorimg":{type:String},
    "num":{type:String},
});

let classifyModel=db.model("classifys",classifylist);
let shoesModel=db.model("shoes",shoeslist);
let shopcarModel=db.model("shopcars",shopcarlist);
module.exports={
  classifyModel,
  shoesModel,
  shopcarModel
};
